#pragma once
#include <stdlib.h>
#include <stdio.h>
#include <string>
#include <iostream>
#include <sstream>
#include <stdexcept>

#define PORT 6666

// default UDP socket type
#define DEFAULT_PROTO SOCK_DGRAM

class EyeTracker
{
public:
	EyeTracker(void);
	~EyeTracker(void);
	
	struct return_struct{
		int ret_val;
		double x;
		double y;
	};
	
	int init(void);
	struct return_struct get_coordinate();

private:

	char Buffer[64];
    char *ip_address;
    int port;
    int retval;
    int fromlen;
    int socket_type;
    struct sockaddr_in local, from;
    WSADATA wsaData;
    SOCKET listen_socket, msgsock;
	std::string delimiters;
	

};

